﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;

namespace TopoViewer
{
    /// <summary>
    /// Represent a rectangle in screen coordinate.
    /// </summary>
    public struct SRect
    {
        /// <summary>
        /// Boundaries of the rectangle, in pixels.
        /// </summary>
        public int left, right, top, bottom;

        public Rect ToRect()
        {
            return new Rect(left, top, right - left, bottom - top);
        }
    }
}
